package com.distribute.config;

import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = "dolphinscheduler")
public class DolphinschedulerConfig {
    private  String url;

    private  int timeout;

    private  int retryTimes;

    private  String serviceName;

    public void setUrl(String url) {
        this.url = url;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public void setRetryTimes(int retryTimes) {
        this.retryTimes = retryTimes;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public Config getConfig() {
        return new Config(url, timeout, retryTimes, serviceName);
    }

    public String getUrl() {
        return url;
    }

    public int getTimeout() {
        return timeout;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public String getServiceName() {
        return serviceName;
    }
}
